package com.unisedu.hr.layui;

import com.github.pagehelper.PageInfo;
import com.unisedu.hr.basic.IBaseEntity;
import lombok.Data;

import java.util.List;

@Data
public class Table {
    public Table() {}
    public Table(PageInfo pageInfo){
        this.data = pageInfo.getList();
        this.count = pageInfo.getTotal();
        this.code = 0;
    }

    private Integer code;
    private String msg;
    private Long count;
    private List<IBaseEntity> data;

}
